<?PHP
if (!session_start()) { session_start(); };
/*if (!isset($_SESSION['lgnapproved'])) {
	die(header('Location: login.php'));
}*/

include("functions.php");
include("cnnxn.php");
connect();

if (isset($_GET['id'])) {
	$SQLdelpl='DELETE FROM av_players WHERE divisionid='.$_GET['id'].';';
	$sendit_delpl=mysqli_query($db,$SQLdelpl) or die(mysqli_error($db));
	
	
	$SQLdel='DELETE FROM av_divisions WHERE id='.$_GET['id'].';';
	$sendit_del=mysqli_query($db,$SQLdel) or die(mysqli_error($db));
	
	mysqli_close($db);
	
	die(header("Location: av_divisions_viewall.php"));
}
?>